package com.ruoyi.order.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 地址对象 ver_address
 * 
 * @author ruoyi
 * @date 2025-08-21
 */
@Data
public class VerAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地址ID(主键） */
    private Long id;

    /** 用户ID（外键，关联user表） */
    @Excel(name = "用户ID", readConverterExp = "外=键，关联user表")
    private Long userId;

    /** 收货人姓名 */
    @Excel(name = "收货人姓名")
    private String receiver;

    /** 收货人电话 */
    @Excel(name = "收货人电话")
    private String phone;

    /** 省份 */
    @Excel(name = "国家")
    private String country;

    private String state;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    private String code;

    /** 区/县 */
    @Excel(name = "街道")
    private String street;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String detail;

    /** 是否默认地址(0否，1是） */
    @Excel(name = "是否默认地址(0否，1是）")
    private Long isDefault;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("receiver", getReceiver())
            .append("phone", getPhone())
            .append("city", getCity())
            .append("detail", getDetail())
            .append("isDefault", getIsDefault())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
